<template>
  <el-dialog
    :title="title"
    class="gl_dialog_TitleLine gl_dl_footer"
    :visible.sync="dialogVisible"
    :close-on-click-modal="false"
    :before-close="cancelDialog"
    width="900px"
  >
    <el-form v-if="data" ref="cardForm" v-loading="loading" class="gl_form_mini" label-position="right" :model="data" style="padding: 0 30px" label-width="100px">
      <el-row :gutter="20">
        <el-col :span="11">
          <el-form-item label="姓名">
            <span>{{data.registerName}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="11" :offset="2">
          <el-form-item label="性别" prop="chargeTypeCode">
            <span>{{data.gender}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="11">
          <el-form-item label="证件类型" >
            <span>{{data.idCardType.name}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="11" :offset="2">
          <el-form-item label="证件号码" prop="chargeTypeCode">
            <span>{{data.idCardNumber}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="11">
          <el-form-item label="出生日期" >
            <span>{{ data.birthDate | FormatDate('yyyy-MM-dd') }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="11" :offset="2">
          <el-form-item label="队伍名称">
            <span>{{data.organizationName}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="11">
          <el-form-item label="教练/电话">
            <span>{{data.coachDesc}}</span>
          </el-form-item>
        </el-col>
        <!-- <el-col :span="11" :offset="2">
          <el-form-item label="教练电话" prop="chargeTypeCode">
            <span>{{data.gender}}</span>
          </el-form-item>
        </el-col> -->
      </el-row>
      <el-row :gutter="20">
        <el-col :span="11">
          <el-form-item label="赛事名称" >
            <span>{{data.competitionName}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="11" :offset="2">
          <el-form-item label="比赛日期" prop="chargeTypeCode">
            <span>{{ data.competitionStartTime | FormatDate('yyyy-MM-dd') }} 至 {{ data.competitionEndTime | FormatDate('yyyy-MM-dd') }}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="11">
          <el-form-item label="保险费金额" >
            <span>{{(data.amount / 100).toFixed(2)}}</span>
          </el-form-item>
        </el-col>
        <!-- <el-col :span="11" :offset="2">
          <el-form-item label="性别" prop="chargeTypeCode">
            <span></span>
          </el-form-item>
        </el-col> -->
      </el-row>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button size="mini" @click="cancelDialog">取消</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      title: '保险信息',
      data: null

    };
  },
  created() {
  },
  methods: {
    cancelDialog() {
      this.dialogVisible = false;
    }
  }
};
</script>

<style lang="scss" scoped>
</style>
